import { defHttp } from '@/utils/http/axios'

enum Api {
  // 数据环比
  GET_QOQ_DATA = '/chart/deviceCompareLineChart',
  GET_childDataLengRe_DATA = '/chart/dict/childDataLengRe',
  // 数据同比
  GET_YOY_DATA = '/chart/deviceCompareLineReport',
}

export const getQoqData = (data) => defHttp.post({ url: Api.GET_QOQ_DATA, data })
export const getChildDataLengRe = (params) => defHttp.get({ url: Api.GET_childDataLengRe_DATA, params })
export const getYoyData = (data) => defHttp.post({ url: Api.GET_YOY_DATA, data })
